
<table width="680" border="0" cellspacing="0" cellpadding="0" class="from_table">
  <tr>
    <th colspan="2" style=" text-align:left; padding-left:10px;"><a href="javascript:;" onclick="ajax_link();"><tpl> $langSysSSeachFlux </tpl></a>  |   <tpl> $langSysSSeachFluxDirection </tpl> </th>
  </tr>
  <tr>
    <th width="250"><tpl> $langSysSSelectSeachEng </tpl>：<br /><tpl> $eng </tpl>		
	<tpl> $langSysSPleaseSelectTime </tpl>：</th>
    <td>	<input name="time" type="radio" value="1" onclick="ajax_list(this.value);" 
      
      <tpl> if $time eq '1' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysSNonceWeek </tpl>
		<input name="time" type="radio" value="2" onclick="ajax_list(this.value);" <tpl> if $time eq '2' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysSUpWeek </tpl>
		<input name="time" type="radio" value="3" onclick="ajax_list(this.value);" <tpl> if $time eq '3' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysSNonceMonth </tpl>
		<input name="time" type="radio" value="4" onclick="ajax_list(this.value);" <tpl> if $time eq '4' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysSUpMonth </tpl>
	<input name="time" type="radio" value="5" onclick="ajax_list(this.value);" <tpl> if $time eq '5' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysSLatelyThirtyDay </tpl></td>
  </tr>
  
  <tr>
    <th width="250"><tpl> $langSysSNonceTimeSegment </tpl>：</th>
    <td><tpl> $start_time </tpl> <tpl> $langSysSTo </tpl> <tpl> $end_time </tpl></td>
  </tr>
  <tr>

  </tr>
</table>
<table width="680" border="0" cellspacing="0" cellpadding="0" style="float:left; clear:both">
  <tr>
    <td style="padding-left:10px"><tpl> $statics_flash </tpl></td>
  </tr>
</table>


 <table class="from_table2_one top-1">
	  <thead>
	  <tr class="area_ajax_list_title">
	    <th class="pd-left" width="230"><tpl> $langSysSSeachEng </tpl></th>
          <th width="230">PV</th>
	      <th width="230"><tpl> $langSysSPercent </tpl></th>
      </tr>
	  </thead>
     <tr>
       <td class="pd-left" width="230" align="left"><tpl> $langSysSTotalize </tpl></td>
         <td width="230" align="left"><tpl> $num_sum|default:'0' </tpl></td>
	     <td width="230" align="left">100%</td>
    </tr>
        <tpl> foreach from=$trend_array key=key item=one </tpl>
	<tr>
	  <td class="pd-left" width="230" align="left"><tpl> $one.time </tpl></TD>
		<td width="230" align="left"><tpl> $one.num </tpl></TD>
		<td width="230" align="left"><tpl> if $num_sum neq '' && $num_sum neq '0' </tpl>
			<tpl> $one/$num_sum*100|string_format:'%.2f' </tpl>%
		<tpl> else </tpl>
			0.00%
	  <tpl> /if </tpl></td>
    </tr>
	<tpl> /foreach </tpl>
</table>
<script type="text/javascript" language="javascript">
function ajax_list(str){
	/* 取表单参数 */var queryString=$("#form_p_list").formSerialize();

	$.ajax({
		url: "statics_eng.manage.php",
		data: 'action=trend&time='+str,
		type:'post',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			$("#result_content").html(msg);
			hideLoading();
		}
	});
	return false;
}

/* 切换页面 */function ajax_link(){
	$.ajax({
		url: "statics_eng.manage.php",
		data: 'action=list',
		type:'get',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			$("#result_content").html(msg);
			hideLoading();
		}
	});
	return false;
}
</script>